<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>DOM CSS: Computed Values of 'font-size' when minimum font sizes are involved</title>
  <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
  <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/fonts/size/minimum/002.xml"/>
  <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-size-props" />
  <style type="text/css">
   #test { font-size: 1px; }
  </style>
 </head>
 <body>
  <p>The computed font-size of an element given a size of 1px is
  <span id="console"/>. The result of this test is therefore a <strong
  id="result"/>.</p>
  <div id="test"/>
  <script type="text/javascript">
   <![CDATA[
    var element = document.getElementById('test');
    var result = document.defaultView.getComputedStyle(element, '').getPropertyValue('font-size');
    document.getElementById('console').appendChild(document.createTextNode(result));
    document.getElementById('result').appendChild(document.createTextNode(result == '1px' ? 'PASS' : 'FAIL'));
   ]]>
  </script>
  <p>Note: Please set a minimum font size of around 10 pixels to get a
  reliable result.</p>
 </body>
</html>
